package com.ruoyi.assest.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 资产分类对象 asset_sort
 *
 * @author ruoyi
 * @date 2024-12-02
 */
public class AssetSort extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 唯一标识 */
    private Long id;

    /** 资产分类编号 */
    private String codee;

    /** 资产分类名称 */
    @Excel(name = "资产分类名称")
    private String namee;

    /** 上级资产分类编号 */
    @Excel(name = "上级资产分类编号")
    private String fcode;

    /** 月折旧率 */
    @Excel(name = "月折旧率")
    private BigDecimal mRate;

    /** 年折旧率 */
    @Excel(name = "年折旧率")
    private BigDecimal yRate;

    /** 残值率 */
    @Excel(name = "残值率")
    private BigDecimal res;

    /** 折旧年限 */
    @Excel(name = "折旧年限")
    private Long deprec;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCodee(String codee)
    {
        this.codee = codee;
    }

    public String getCodee()
    {
        return codee;
    }
    public void setNamee(String namee)
    {
        this.namee = namee;
    }

    public String getNamee()
    {
        return namee;
    }
    public void setFcode(String fcode)
    {
        this.fcode = fcode;
    }

    public String getFcode()
    {
        return fcode;
    }
    public void setmRate(BigDecimal mRate)
    {
        this.mRate = mRate;
    }

    public BigDecimal getmRate()
    {
        return mRate;
    }
    public void setyRate(BigDecimal yRate)
    {
        this.yRate = yRate;
    }

    public BigDecimal getyRate()
    {
        return yRate;
    }
    public void setRes(BigDecimal res)
    {
        this.res = res;
    }

    public BigDecimal getRes()
    {
        return res;
    }
    public void setDeprec(Long deprec)
    {
        this.deprec = deprec;
    }

    public Long getDeprec()
    {
        return deprec;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("codee", getCodee())
            .append("namee", getNamee())
            .append("fcode", getFcode())
            .append("mRate", getmRate())
            .append("yRate", getyRate())
            .append("res", getRes())
            .append("deprec", getDeprec())
            .toString();
    }
    //32132132132
}
